package oop.multiform.geometric;

public class Circle extends GeometricObject{

    private double radius;

    public Circle(String color, double weight,double radius) {
        super(color, weight);
        this.radius = radius;
    }

    @Override
    public double getArea() {
        return Math.PI * Math.pow(this.radius,2);
    }

    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }
}
